﻿using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Pg2.Share.Entities;

[Table("t_user")]
public class User
{
    [JsonPropertyName("id")][Column("id")] public int Id { get; set; } 
    [JsonPropertyName("user_name")][Column("user_name")] public string UserName { get; set; } = string.Empty;
    [JsonPropertyName("user_pwd")][Column("user_pwd")] public string? UserPwd { get; set; } = string.Empty;
    [JsonPropertyName("user_realname")][Column("user_realname")] public string? UserRealname { get; set; } = string.Empty;
    [JsonPropertyName("user_department")][Column("user_department")] public string? UserDepartment { get; set; } = string.Empty;
    [JsonPropertyName("user_phone")][Column("user_phone")] public string? UserPhone { get; set; } = string.Empty;
    [JsonPropertyName("user_addtime")][Column("user_addtime")] public DateTime? UserAddtime { get; set; } = DateTime.Now;
    [JsonPropertyName("user_modifytime")][Column("user_modifytime")] public DateTime? UserModifytime { get; set; } = DateTime.Now;
    [JsonPropertyName("user_power")][Column("user_power")] public decimal? UserPower { get; set; } 
    [JsonPropertyName("user_case_power")][Column("user_case_power")] public string? UserCasePower { get; set; } = string.Empty;
    [JsonPropertyName("user_wd")][Column("user_wd")] public string? UserWd { get; set; } = string.Empty;
    [JsonPropertyName("User_System")][Column("User_System")] public string? UserSystem { get; set; } = string.Empty;
}
